<include file="Public/header" />
    <div class="comm-top">
        <if condition="$user neq null">
        <div class="title-left">提现记录</div>
        <div class="title-left"><a style="color:#1066a5;cursor:pointer;" href="{:U('index')}">返回</a></div>
        </if>
      <!--   <div class="title-right" style="top:8px;">
        <form method="get" action="{:U('user_cent')}">
            <input type="hidden" name="user_id" value="{$user_info.id}"/>
            <input name="keywords" class="textarea search_inp" placeholder="请输入关键词" type="text" value="{:I('get.keywords')}"/>
            <input value="搜索" class="btn btn-success search_btn" type="submit" />
        </form>
        </div> -->
    </div>
    <div class="list-table">
        <div class="wrapper">
            <table class="stable">
                <thead>
                    <tr>
                        <th>昵称</th>
                        <th>手机号</th>
                        <th>提现金额</th>
                        <th>提现时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <foreach name="list" item="vo">
                        <tr>
                            <td>{$vo.nickname|default='--'}</td>
                            <td>{$vo.mobile}</td>
                            <td>{$vo.pay_value|default='0'}</td>
                           <td>{$vo.pay_time|substr=0,16}</td>
                           <if condition="$vo.pay_status eq 1">
                           <td  class="chuli" data-id="{$vo.id}">未处理</td><else/><td>已处理</td></if>
                        </tr>
                    </foreach>
                </tbody>
            </table>
        </div>
    </div>
    <div class="page-list">{$page}</div>
<script>
$(function(){
    $('.chuli').click(function(){
        $.post("{:U('set_status')}",{id:$(this).attr('data-id')},function(data){
            if(data.status == '1'){
                layer.msg('处理成功');
                location.reload();
            }else{
                layer.msg('处理失败');
            }
            
        });
    });
});
</script>
<include file="Public/footer" />